﻿@model Aurora.WebApp.ViewModel.Branch.AddEditSucursalViewModel
@{
    ViewBag.Title = Model.SUC_ID.HasValue ? "Editar Sucursal" : "Agregar Sucursal";
}
@section Breadcrumbs{
    <li><a href="@Url.Action("LstSucursalesAll", "Branch")"></a>&nbsp;Lista de Empleados</li>
}
<form method="post" class="panel form-horizontal">
    <div class="panel-body">
        @Html.EditorFor(x => x.SUC_CONTACTO, new { ancho="5" })
        @Html.EditorFor(x => x.SUC_TELEFONO, new { ancho="1" })
       
        <div class="row form-group">
            <label class="col-sm-3 control-label">Dirección</label>
            <div class="col-sm-8">
                @Html.TextAreaFor(x => x.SUC_DIRECCION, new { @class = "form-control" ,rows="2"})
                @Html.ValidationMessageFor(x => x.SUC_DIRECCION)
            </div>
        </div>
        <div class="row form-group">
            <label class="col-sm-3 control-label">Cliente</label>
            <div class="col-sm-4">
                @Html.DropDownListFor(x => x.CLI_ID, Model.ListClientes, "[ -Seleccionar- ]", new { @class = "form-control" })
                @Html.ValidationMessageFor(x => x.CLI_ID)
            </div>
        </div>
        <div class="row form-group">
            <label class="col-sm-3 control-label">Observaciones</label>
            <div class="col-sm-8">
                @Html.TextAreaFor(x => x.SUC_OBSERVACIONES, new { @class = "form-control", rows = "2" })
            </div>
        </div>
       
    </div>
    <div class="panel-footer text-right">
        <button class="btn btn-primary"><i class="fa fa-save"></i>&nbsp;&nbsp;Guardar</button>&nbsp;&nbsp;
        <a class="btn btn-default"  href="@Url.Action("LstSucursalesAll", "Branch")"><i class="fa fa-arrow-left"></i>&nbsp;&nbsp;Cancelar</a>
    </div>
</form>
